<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::DescriptorMatcher Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html">DescriptorMatcher</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#pub-types">Public Types</a> |
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> |
<a href="#pro-methods">Protected Member Functions</a> |
<a href="#pro-static-methods">Static Protected Member Functions</a> |
<a href="#pro-attribs">Protected Attributes</a> |
<a href="../../df/d62/classcv_1_1DescriptorMatcher-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::DescriptorMatcher Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="../../da/d9b/group__features2d.html">2D Features Framework</a> » <a class="el" href="../../d8/d9b/group__features2d__match.html">Descriptor Matchers</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p>Abstract base class for matching keypoint descriptors.  
 <a href="../../db/d39/classcv_1_1DescriptorMatcher.html#details">More...</a></p>
<p><code>#include &lt;opencv2/features2d.hpp&gt;</code></p>
<div class="dynheader">
Inheritance diagram for cv::DescriptorMatcher:</div>
<div class="dyncontent">
 <div class="center">
  <img alt="" src="../../db/d39/classcv_1_1DescriptorMatcher.png" usemap="#cv::DescriptorMatcher_map"/>
  <map id="cv::DescriptorMatcher_map" name="cv::DescriptorMatcher_map">
<area alt="cv::Algorithm" coords="78,0,224,24" href="../../d3/d46/classcv_1_1Algorithm.html" shape="rect" title="This is a base class for all more or less complex algorithms in OpenCV. "/>
<area alt="cv::BFMatcher" coords="0,112,146,136" href="../../d3/da1/classcv_1_1BFMatcher.html" shape="rect" title="Brute-force descriptor matcher. "/>
<area alt="cv::FlannBasedMatcher" coords="156,112,302,136" href="../../dc/de2/classcv_1_1FlannBasedMatcher.html" shape="rect" title="Flann-based descriptor matcher. "/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td align="right" class="memItemLeft" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d4/dac/classcv_1_1DescriptorMatcher_1_1DescriptorCollection.html">DescriptorCollection</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:af8b6f4acb8f1a9ea6b73bfcb86b80c3b"><td align="right" class="memItemLeft" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#af8b6f4acb8f1a9ea6b73bfcb86b80c3b">MatcherType</a> { <br/>
  <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#af8b6f4acb8f1a9ea6b73bfcb86b80c3baf73d671c6860c24f44b2880a77fadcdc">FLANNBASED</a> = 1, 
<br/>
  <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#af8b6f4acb8f1a9ea6b73bfcb86b80c3baddf99aae344c73b63d77764440711b76">BRUTEFORCE</a> = 2, 
<br/>
  <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#af8b6f4acb8f1a9ea6b73bfcb86b80c3bac4f170ff27df2f2cadabd75c129ec468">BRUTEFORCE_L1</a> = 3, 
<br/>
  <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#af8b6f4acb8f1a9ea6b73bfcb86b80c3ba7362dae849e477ed4b1bc862c8ebb5c4">BRUTEFORCE_HAMMING</a> = 4, 
<br/>
  <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#af8b6f4acb8f1a9ea6b73bfcb86b80c3bae93477eddb9309e995b78a4eb677b9fe">BRUTEFORCE_HAMMINGLUT</a> = 5, 
<br/>
  <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#af8b6f4acb8f1a9ea6b73bfcb86b80c3baf88193b09daf077fec5015a9906a67e8">BRUTEFORCE_SL2</a> = 6
<br/>
 }</td></tr>
<tr class="separator:af8b6f4acb8f1a9ea6b73bfcb86b80c3b"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa044fc71f0d8395ec29f936977e5c42f"><td align="right" class="memItemLeft" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#aa044fc71f0d8395ec29f936977e5c42f">~DescriptorMatcher</a> ()</td></tr>
<tr class="separator:aa044fc71f0d8395ec29f936977e5c42f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a623a2b07755cf7fb1c79554af73cdbb0"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a623a2b07755cf7fb1c79554af73cdbb0">add</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> descriptors)</td></tr>
<tr class="memdesc:a623a2b07755cf7fb1c79554af73cdbb0"><td class="mdescLeft"> </td><td class="mdescRight">Adds descriptors to train a CPU(trainDescCollectionis) or GPU(utrainDescCollectionis) descriptor collection.  <a href="#a623a2b07755cf7fb1c79554af73cdbb0">More...</a><br/></td></tr>
<tr class="separator:a623a2b07755cf7fb1c79554af73cdbb0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a01f97324f1393aae68d9c84874060454"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a01f97324f1393aae68d9c84874060454">clear</a> () <a class="el" href="../../db/de0/group__core__utils.html#ga4d89d63e402ef9ddc48e18e21180fe4a">CV_OVERRIDE</a></td></tr>
<tr class="memdesc:a01f97324f1393aae68d9c84874060454"><td class="mdescLeft"> </td><td class="mdescRight">Clears the train descriptor collections.  <a href="#a01f97324f1393aae68d9c84874060454">More...</a><br/></td></tr>
<tr class="separator:a01f97324f1393aae68d9c84874060454"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8d0dfab3c560c3edada03155c97ed8a9"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html">DescriptorMatcher</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a8d0dfab3c560c3edada03155c97ed8a9">clone</a> (bool emptyTrainData=false) const =0</td></tr>
<tr class="memdesc:a8d0dfab3c560c3edada03155c97ed8a9"><td class="mdescLeft"> </td><td class="mdescRight">Clones the matcher.  <a href="#a8d0dfab3c560c3edada03155c97ed8a9">More...</a><br/></td></tr>
<tr class="separator:a8d0dfab3c560c3edada03155c97ed8a9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac0951eebe04d00aa66117eab337909e4"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#ac0951eebe04d00aa66117eab337909e4">empty</a> () const <a class="el" href="../../db/de0/group__core__utils.html#ga4d89d63e402ef9ddc48e18e21180fe4a">CV_OVERRIDE</a></td></tr>
<tr class="memdesc:ac0951eebe04d00aa66117eab337909e4"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if there are no train descriptors in the both collections.  <a href="#ac0951eebe04d00aa66117eab337909e4">More...</a><br/></td></tr>
<tr class="separator:ac0951eebe04d00aa66117eab337909e4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa6950934cbf83d774152d426dd82261b"><td align="right" class="memItemLeft" valign="top">const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#aa6950934cbf83d774152d426dd82261b">getTrainDescriptors</a> () const</td></tr>
<tr class="memdesc:aa6950934cbf83d774152d426dd82261b"><td class="mdescLeft"> </td><td class="mdescRight">Returns a constant link to the train descriptor collection trainDescCollection .  <a href="#aa6950934cbf83d774152d426dd82261b">More...</a><br/></td></tr>
<tr class="separator:aa6950934cbf83d774152d426dd82261b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3cc074710ccb466a662815969e14cf5e"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a3cc074710ccb466a662815969e14cf5e">isMaskSupported</a> () const =0</td></tr>
<tr class="memdesc:a3cc074710ccb466a662815969e14cf5e"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the descriptor matcher supports masking permissible matches.  <a href="#a3cc074710ccb466a662815969e14cf5e">More...</a><br/></td></tr>
<tr class="separator:a3cc074710ccb466a662815969e14cf5e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a378f35c9b1a5dfa4022839a45cdf0e89"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a378f35c9b1a5dfa4022839a45cdf0e89">knnMatch</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> queryDescriptors, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> trainDescriptors, std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp;matches, int k, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), bool compactResult=false) const</td></tr>
<tr class="memdesc:a378f35c9b1a5dfa4022839a45cdf0e89"><td class="mdescLeft"> </td><td class="mdescRight">Finds the k best matches for each descriptor from a query set.  <a href="#a378f35c9b1a5dfa4022839a45cdf0e89">More...</a><br/></td></tr>
<tr class="separator:a378f35c9b1a5dfa4022839a45cdf0e89"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa880f9353cdf185ccf3013e08210483a"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#aa880f9353cdf185ccf3013e08210483a">knnMatch</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> queryDescriptors, std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp;matches, int k, <a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> masks=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), bool compactResult=false)</td></tr>
<tr class="separator:aa880f9353cdf185ccf3013e08210483a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0f046f47b68ec7074391e1e85c750cba"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a0f046f47b68ec7074391e1e85c750cba">match</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> queryDescriptors, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> trainDescriptors, std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &amp;matches, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()) const</td></tr>
<tr class="memdesc:a0f046f47b68ec7074391e1e85c750cba"><td class="mdescLeft"> </td><td class="mdescRight">Finds the best match for each descriptor from a query set.  <a href="#a0f046f47b68ec7074391e1e85c750cba">More...</a><br/></td></tr>
<tr class="separator:a0f046f47b68ec7074391e1e85c750cba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a695c0aceafc907c024c24a0b5cdff758"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a695c0aceafc907c024c24a0b5cdff758">match</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> queryDescriptors, std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &amp;matches, <a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> masks=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>())</td></tr>
<tr class="separator:a695c0aceafc907c024c24a0b5cdff758"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a56b8dcd6fc600f8f2a23212f6e4c5082"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a56b8dcd6fc600f8f2a23212f6e4c5082">radiusMatch</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> queryDescriptors, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> trainDescriptors, std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp;matches, float maxDistance, <a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), bool compactResult=false) const</td></tr>
<tr class="memdesc:a56b8dcd6fc600f8f2a23212f6e4c5082"><td class="mdescLeft"> </td><td class="mdescRight">For each query descriptor, finds the training descriptors not farther than the specified distance.  <a href="#a56b8dcd6fc600f8f2a23212f6e4c5082">More...</a><br/></td></tr>
<tr class="separator:a56b8dcd6fc600f8f2a23212f6e4c5082"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec313028966f30f5b011a3e976f62c09"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#aec313028966f30f5b011a3e976f62c09">radiusMatch</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> queryDescriptors, std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp;matches, float maxDistance, <a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> masks=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), bool compactResult=false)</td></tr>
<tr class="separator:aec313028966f30f5b011a3e976f62c09"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aba10146926505e6b90377f24489e336c"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#aba10146926505e6b90377f24489e336c">read</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;fileName)</td></tr>
<tr class="separator:aba10146926505e6b90377f24489e336c"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abb46ea487ffa0c0f9dd72d3de9fd42ab"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#abb46ea487ffa0c0f9dd72d3de9fd42ab">read</a> (const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;) <a class="el" href="../../db/de0/group__core__utils.html#ga4d89d63e402ef9ddc48e18e21180fe4a">CV_OVERRIDE</a></td></tr>
<tr class="memdesc:abb46ea487ffa0c0f9dd72d3de9fd42ab"><td class="mdescLeft"> </td><td class="mdescRight">Reads algorithm parameters from a file storage.  <a href="#abb46ea487ffa0c0f9dd72d3de9fd42ab">More...</a><br/></td></tr>
<tr class="separator:abb46ea487ffa0c0f9dd72d3de9fd42ab"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a80e9fd98de5908f5348c17696eeb1a32"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a80e9fd98de5908f5348c17696eeb1a32">train</a> ()</td></tr>
<tr class="memdesc:a80e9fd98de5908f5348c17696eeb1a32"><td class="mdescLeft"> </td><td class="mdescRight">Trains a descriptor matcher.  <a href="#a80e9fd98de5908f5348c17696eeb1a32">More...</a><br/></td></tr>
<tr class="separator:a80e9fd98de5908f5348c17696eeb1a32"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9e848d967aaed6930da407f338ca17ba"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a9e848d967aaed6930da407f338ca17ba">write</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;fileName) const</td></tr>
<tr class="separator:a9e848d967aaed6930da407f338ca17ba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abcba89024601e88afe6e4cc2349798c3"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#abcba89024601e88afe6e4cc2349798c3">write</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;) const <a class="el" href="../../db/de0/group__core__utils.html#ga4d89d63e402ef9ddc48e18e21180fe4a">CV_OVERRIDE</a></td></tr>
<tr class="memdesc:abcba89024601e88afe6e4cc2349798c3"><td class="mdescLeft"> </td><td class="mdescRight">Stores algorithm parameters in a file storage.  <a href="#abcba89024601e88afe6e4cc2349798c3">More...</a><br/></td></tr>
<tr class="separator:abcba89024601e88afe6e4cc2349798c3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad516a0d4afa280c256123e082a1e02c1"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#ad516a0d4afa280c256123e082a1e02c1">write</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &gt; &amp;fs, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;name=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>()) const</td></tr>
<tr class="separator:ad516a0d4afa280c256123e082a1e02c1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Public Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a827c8b2781ed17574805f373e6054ff1 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a827c8b2781ed17574805f373e6054ff1">Algorithm</a> ()</td></tr>
<tr class="separator:a827c8b2781ed17574805f373e6054ff1 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ae826127fa0f1f8d10a24841bd376f8 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a8ae826127fa0f1f8d10a24841bd376f8">~Algorithm</a> ()</td></tr>
<tr class="separator:a8ae826127fa0f1f8d10a24841bd376f8 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a286fc82744ccab3d248aca44524266a9 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a286fc82744ccab3d248aca44524266a9">getDefaultName</a> () const</td></tr>
<tr class="separator:a286fc82744ccab3d248aca44524266a9 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0a880744bc4e3f45711444571df47d67 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a0a880744bc4e3f45711444571df47d67">save</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename) const</td></tr>
<tr class="separator:a0a880744bc4e3f45711444571df47d67 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a763a62d1b03042eef7d7fc3ac6c87c79">write</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &gt; &amp;fs, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;name=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>()) const</td></tr>
<tr class="memdesc:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a763a62d1b03042eef7d7fc3ac6c87c79">More...</a><br/></td></tr>
<tr class="separator:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ab5dc5036569ecc8d47565007fa518257"><td align="right" class="memItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html">DescriptorMatcher</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#ab5dc5036569ecc8d47565007fa518257">create</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;descriptorMatcherType)</td></tr>
<tr class="memdesc:ab5dc5036569ecc8d47565007fa518257"><td class="mdescLeft"> </td><td class="mdescRight">Creates a descriptor matcher of a given type with the default parameters (using default constructor).  <a href="#ab5dc5036569ecc8d47565007fa518257">More...</a><br/></td></tr>
<tr class="separator:ab5dc5036569ecc8d47565007fa518257"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a13441ee7098af71be2a55453288360f7"><td align="right" class="memItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html">DescriptorMatcher</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a13441ee7098af71be2a55453288360f7">create</a> (const <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#af8b6f4acb8f1a9ea6b73bfcb86b80c3b">DescriptorMatcher::MatcherType</a> &amp;matcherType)</td></tr>
<tr class="separator:a13441ee7098af71be2a55453288360f7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_static_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Static Public Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a623841c33b58ea9c4847da04607e067b">load</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;objname=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>())</td></tr>
<tr class="memdesc:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Loads algorithm from the file.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a623841c33b58ea9c4847da04607e067b">More...</a><br/></td></tr>
<tr class="separator:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a3ba305a10d02479c13cf7d169c321547">loadFromString</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;strModel, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;objname=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>())</td></tr>
<tr class="memdesc:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Loads algorithm from a String.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a3ba305a10d02479c13cf7d169c321547">More...</a><br/></td></tr>
<tr class="separator:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#ad8c591bacb34c485f5b7a250c314fc53">read</a> (const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;fn)</td></tr>
<tr class="memdesc:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Reads algorithm from the file node.  <a href="../../d3/d46/classcv_1_1Algorithm.html#ad8c591bacb34c485f5b7a250c314fc53">More...</a><br/></td></tr>
<tr class="separator:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:acbcaa368465fd3924c8bb70851a98944"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#acbcaa368465fd3924c8bb70851a98944">checkMasks</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> masks, int queryDescriptorsCount) const</td></tr>
<tr class="separator:acbcaa368465fd3924c8bb70851a98944"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a38f18a66b3498fa5c960e29ed0056d44"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a38f18a66b3498fa5c960e29ed0056d44">knnMatchImpl</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> queryDescriptors, std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp;matches, int k, <a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> masks=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), bool compactResult=false)=0</td></tr>
<tr class="separator:a38f18a66b3498fa5c960e29ed0056d44"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afc03bcd8e385f4b3684b7a7d42810ff6"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#afc03bcd8e385f4b3684b7a7d42810ff6">radiusMatchImpl</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> queryDescriptors, std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp;matches, float maxDistance, <a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> masks=<a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>(), bool compactResult=false)=0</td></tr>
<tr class="separator:afc03bcd8e385f4b3684b7a7d42810ff6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Protected Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a68eeca71617474ad3d4561786f0289d2 inherit pro_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a68eeca71617474ad3d4561786f0289d2">writeFormat</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;fs) const</td></tr>
<tr class="separator:a68eeca71617474ad3d4561786f0289d2 inherit pro_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
Static Protected Member Functions</h2></td></tr>
<tr class="memitem:a7aa961c11ccdc6a9b1495f5aaf83d251"><td align="right" class="memItemLeft" valign="top">static <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a7aa961c11ccdc6a9b1495f5aaf83d251">clone_op</a> (<a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> m)</td></tr>
<tr class="separator:a7aa961c11ccdc6a9b1495f5aaf83d251"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acf9d628dd4c52e6ff00eb92801fd0921"><td align="right" class="memItemLeft" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#acf9d628dd4c52e6ff00eb92801fd0921">isMaskedOut</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> masks, int queryIdx)</td></tr>
<tr class="separator:acf9d628dd4c52e6ff00eb92801fd0921"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aaeca71427249a189e35e77066f25fc8b"><td align="right" class="memItemLeft" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#aaeca71427249a189e35e77066f25fc8b">isPossibleMatch</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> mask, int queryIdx, int trainIdx)</td></tr>
<tr class="separator:aaeca71427249a189e35e77066f25fc8b"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a6c1d27bb1cea2a46e0a5c7d297368edd"><td align="right" class="memItemLeft" valign="top">std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a6c1d27bb1cea2a46e0a5c7d297368edd">trainDescCollection</a></td></tr>
<tr class="memdesc:a6c1d27bb1cea2a46e0a5c7d297368edd"><td class="mdescLeft"> </td><td class="mdescRight">Collection of descriptors from train images.  <a href="#a6c1d27bb1cea2a46e0a5c7d297368edd">More...</a><br/></td></tr>
<tr class="separator:a6c1d27bb1cea2a46e0a5c7d297368edd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a66bd1ba0753ab3ebb792e7b4bf5af2ab"><td align="right" class="memItemLeft" valign="top">std::vector&lt; <a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a66bd1ba0753ab3ebb792e7b4bf5af2ab">utrainDescCollection</a></td></tr>
<tr class="separator:a66bd1ba0753ab3ebb792e7b4bf5af2ab"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Abstract base class for matching keypoint descriptors. </p>
<p>It has two groups of match methods: for matching descriptors of an image with another image or with an image set. </p>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="af8b6f4acb8f1a9ea6b73bfcb86b80c3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8b6f4acb8f1a9ea6b73bfcb86b80c3b">◆ </a></span>MatcherType</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#af8b6f4acb8f1a9ea6b73bfcb86b80c3b">cv::DescriptorMatcher::MatcherType</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="af8b6f4acb8f1a9ea6b73bfcb86b80c3baf73d671c6860c24f44b2880a77fadcdc"></a>FLANNBASED </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="af8b6f4acb8f1a9ea6b73bfcb86b80c3baddf99aae344c73b63d77764440711b76"></a>BRUTEFORCE </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="af8b6f4acb8f1a9ea6b73bfcb86b80c3bac4f170ff27df2f2cadabd75c129ec468"></a>BRUTEFORCE_L1 </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="af8b6f4acb8f1a9ea6b73bfcb86b80c3ba7362dae849e477ed4b1bc862c8ebb5c4"></a>BRUTEFORCE_HAMMING </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="af8b6f4acb8f1a9ea6b73bfcb86b80c3bae93477eddb9309e995b78a4eb677b9fe"></a>BRUTEFORCE_HAMMINGLUT </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="af8b6f4acb8f1a9ea6b73bfcb86b80c3baf88193b09daf077fec5015a9906a67e8"></a>BRUTEFORCE_SL2 </td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="aa044fc71f0d8395ec29f936977e5c42f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa044fc71f0d8395ec29f936977e5c42f">◆ </a></span>~DescriptorMatcher()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual cv::DescriptorMatcher::~DescriptorMatcher </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a623a2b07755cf7fb1c79554af73cdbb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a623a2b07755cf7fb1c79554af73cdbb0">◆ </a></span>add()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::DescriptorMatcher::add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>descriptors</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.add(</td><td class="paramname">descriptors</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Adds descriptors to train a CPU(trainDescCollectionis) or GPU(utrainDescCollectionis) descriptor collection. </p>
<p>If the collection is not empty, the new descriptors are added to existing train descriptors.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">descriptors</td><td>Descriptors to add. Each descriptors[i] is a set of descriptors from the same train image. </td></tr>
  </table>
  </dd>
</dl>
<p>Reimplemented in <a class="el" href="../../dc/de2/classcv_1_1FlannBasedMatcher.html#a94398a33b3c40989245f22f59ad78e7a">cv::FlannBasedMatcher</a>.</p>
</div>
</div>
<a id="acbcaa368465fd3924c8bb70851a98944"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbcaa368465fd3924c8bb70851a98944">◆ </a></span>checkMasks()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void cv::DescriptorMatcher::checkMasks </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>masks</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>queryDescriptorsCount</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a01f97324f1393aae68d9c84874060454"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a01f97324f1393aae68d9c84874060454">◆ </a></span>clear()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::DescriptorMatcher::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.clear(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Clears the train descriptor collections. </p>
<p>Reimplemented from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#aec9c965448e4dc851d7cacd3abd84cd1">cv::Algorithm</a>.</p>
<p>Reimplemented in <a class="el" href="../../dc/de2/classcv_1_1FlannBasedMatcher.html#a321910c88a7d8a887843ce2173f58a6e">cv::FlannBasedMatcher</a>.</p>
</div>
</div>
<a id="a8d0dfab3c560c3edada03155c97ed8a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8d0dfab3c560c3edada03155c97ed8a9">◆ </a></span>clone()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html">DescriptorMatcher</a>&gt; cv::DescriptorMatcher::clone </td>
          <td>(</td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>emptyTrainData</em> = <code>false</code></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.DescriptorMatcher.clone(</td><td class="paramname">[, emptyTrainData]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Clones the matcher. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">emptyTrainData</td><td>If emptyTrainData is false, the method creates a deep copy of the object, that is, copies both parameters and train data. If emptyTrainData is true, the method creates an object copy with the current parameters but with empty train data. </td></tr>
  </table>
  </dd>
</dl>
<p>Implemented in <a class="el" href="../../dc/de2/classcv_1_1FlannBasedMatcher.html#aa181710f75e8be9539939247b645557b">cv::FlannBasedMatcher</a>, and <a class="el" href="../../d3/da1/classcv_1_1BFMatcher.html#a117b4667faf1974e5a3f0b8d7ba1c0a1">cv::BFMatcher</a>.</p>
</div>
</div>
<a id="a7aa961c11ccdc6a9b1495f5aaf83d251"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7aa961c11ccdc6a9b1495f5aaf83d251">◆ </a></span>clone_op()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> cv::DescriptorMatcher::clone_op </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> </td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="ab5dc5036569ecc8d47565007fa518257"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5dc5036569ecc8d47565007fa518257">◆ </a></span>create() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html">DescriptorMatcher</a>&gt; cv::DescriptorMatcher::create </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>descriptorMatcherType</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.DescriptorMatcher_create(</td><td class="paramname">descriptorMatcherType</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.DescriptorMatcher_create(</td><td class="paramname">matcherType</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Creates a descriptor matcher of a given type with the default parameters (using default constructor). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">descriptorMatcherType</td><td>Descriptor matcher type. Now the following matcher types are supported:<ul>
<li><code>BruteForce</code> (it uses <a class="el" href="../../dc/daa/structcv_1_1L2.html">L2</a> )</li>
<li><code>BruteForce-L1</code></li>
<li><code>BruteForce-Hamming</code></li>
<li><code>BruteForce-Hamming(2)</code></li>
<li><code>FlannBased</code> </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a13441ee7098af71be2a55453288360f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13441ee7098af71be2a55453288360f7">◆ </a></span>create() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html">DescriptorMatcher</a>&gt; cv::DescriptorMatcher::create </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#af8b6f4acb8f1a9ea6b73bfcb86b80c3b">DescriptorMatcher::MatcherType</a> &amp; </td>
          <td class="paramname"><em>matcherType</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.DescriptorMatcher_create(</td><td class="paramname">descriptorMatcherType</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.DescriptorMatcher_create(</td><td class="paramname">matcherType</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="ac0951eebe04d00aa66117eab337909e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0951eebe04d00aa66117eab337909e4">◆ </a></span>empty()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::DescriptorMatcher::empty </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.DescriptorMatcher.empty(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns true if there are no train descriptors in the both collections. </p>
<p>Reimplemented from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#ab6a18f1825475643e94381697d413972">cv::Algorithm</a>.</p>
</div>
</div>
<a id="aa6950934cbf83d774152d426dd82261b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa6950934cbf83d774152d426dd82261b">◆ </a></span>getTrainDescriptors()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const std::vector&lt;<a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&gt;&amp; cv::DescriptorMatcher::getTrainDescriptors </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.DescriptorMatcher.getTrainDescriptors(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns a constant link to the train descriptor collection trainDescCollection . </p>
</div>
</div>
<a id="acf9d628dd4c52e6ff00eb92801fd0921"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf9d628dd4c52e6ff00eb92801fd0921">◆ </a></span>isMaskedOut()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool cv::DescriptorMatcher::isMaskedOut </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>masks</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>queryIdx</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a3cc074710ccb466a662815969e14cf5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cc074710ccb466a662815969e14cf5e">◆ </a></span>isMaskSupported()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::DescriptorMatcher::isMaskSupported </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.DescriptorMatcher.isMaskSupported(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns true if the descriptor matcher supports masking permissible matches. </p>
<p>Implemented in <a class="el" href="../../dc/de2/classcv_1_1FlannBasedMatcher.html#a614976020b9ef7ecfc419b23e122206d">cv::FlannBasedMatcher</a>, and <a class="el" href="../../d3/da1/classcv_1_1BFMatcher.html#a15bc508b250c96ecd49e153dfcbf019a">cv::BFMatcher</a>.</p>
</div>
</div>
<a id="aaeca71427249a189e35e77066f25fc8b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaeca71427249a189e35e77066f25fc8b">◆ </a></span>isPossibleMatch()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool cv::DescriptorMatcher::isPossibleMatch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>queryIdx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>trainIdx</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a378f35c9b1a5dfa4022839a45cdf0e89"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a378f35c9b1a5dfa4022839a45cdf0e89">◆ </a></span>knnMatch() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::DescriptorMatcher::knnMatch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>queryDescriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>trainDescriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>matches</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>compactResult</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.knnMatch(</td><td class="paramname">queryDescriptors, trainDescriptors, k[, mask[, compactResult]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.knnMatch(</td><td class="paramname">queryDescriptors, k[, masks[, compactResult]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Finds the k best matches for each descriptor from a query set. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">queryDescriptors</td><td>Query set of descriptors. </td></tr>
    <tr><td class="paramname">trainDescriptors</td><td>Train set of descriptors. This set is not added to the train descriptors collection stored in the class object. </td></tr>
    <tr><td class="paramname">mask</td><td>Mask specifying permissible matches between an input query and train matrices of descriptors. </td></tr>
    <tr><td class="paramname">matches</td><td>Matches. Each matches[i] is k or less matches for the same query descriptor. </td></tr>
    <tr><td class="paramname">k</td><td>Count of best matches found per each query descriptor or less if a query descriptor has less than k possible matches in total. </td></tr>
    <tr><td class="paramname">compactResult</td><td>Parameter used when the mask (or masks) is not empty. If compactResult is false, the matches vector has the same size as queryDescriptors rows. If compactResult is true, the matches vector does not contain matches for fully masked-out query descriptors.</td></tr>
  </table>
  </dd>
</dl>
<p>These extended variants of <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a0f046f47b68ec7074391e1e85c750cba" title="Finds the best match for each descriptor from a query set. ">DescriptorMatcher::match</a> methods find several best matches for each query descriptor. The matches are returned in the distance increasing order. See <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a0f046f47b68ec7074391e1e85c750cba" title="Finds the best match for each descriptor from a query set. ">DescriptorMatcher::match</a> for the details about query and train descriptors. </p>
</div>
</div>
<a id="aa880f9353cdf185ccf3013e08210483a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa880f9353cdf185ccf3013e08210483a">◆ </a></span>knnMatch() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::DescriptorMatcher::knnMatch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>queryDescriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>matches</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>masks</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>compactResult</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.knnMatch(</td><td class="paramname">queryDescriptors, trainDescriptors, k[, mask[, compactResult]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.knnMatch(</td><td class="paramname">queryDescriptors, k[, masks[, compactResult]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">queryDescriptors</td><td>Query set of descriptors. </td></tr>
    <tr><td class="paramname">matches</td><td>Matches. Each matches[i] is k or less matches for the same query descriptor. </td></tr>
    <tr><td class="paramname">k</td><td>Count of best matches found per each query descriptor or less if a query descriptor has less than k possible matches in total. </td></tr>
    <tr><td class="paramname">masks</td><td>Set of masks. Each masks[i] specifies permissible matches between the input query descriptors and stored train descriptors from the i-th image trainDescCollection[i]. </td></tr>
    <tr><td class="paramname">compactResult</td><td>Parameter used when the mask (or masks) is not empty. If compactResult is false, the matches vector has the same size as queryDescriptors rows. If compactResult is true, the matches vector does not contain matches for fully masked-out query descriptors. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a38f18a66b3498fa5c960e29ed0056d44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38f18a66b3498fa5c960e29ed0056d44">◆ </a></span>knnMatchImpl()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::DescriptorMatcher::knnMatchImpl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>queryDescriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>matches</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>k</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>masks</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>compactResult</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>In fact the matching is implemented only by the following two methods. These methods suppose that the class object has been trained already. Public match methods call these methods after calling <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a80e9fd98de5908f5348c17696eeb1a32" title="Trains a descriptor matcher. ">train()</a>. </p>
<p>Implemented in <a class="el" href="../../dc/de2/classcv_1_1FlannBasedMatcher.html#a2b9db8bec920f8f48ae5386f5e274624">cv::FlannBasedMatcher</a>, and <a class="el" href="../../d3/da1/classcv_1_1BFMatcher.html#abe0990ac0bb000f1e5dccc90146fc6f3">cv::BFMatcher</a>.</p>
</div>
</div>
<a id="a0f046f47b68ec7074391e1e85c750cba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f046f47b68ec7074391e1e85c750cba">◆ </a></span>match() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::DescriptorMatcher::match </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>queryDescriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>trainDescriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &amp; </td>
          <td class="paramname"><em>matches</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.match(</td><td class="paramname">queryDescriptors, trainDescriptors[, mask]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.match(</td><td class="paramname">queryDescriptors[, masks]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Finds the best match for each descriptor from a query set. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">queryDescriptors</td><td>Query set of descriptors. </td></tr>
    <tr><td class="paramname">trainDescriptors</td><td>Train set of descriptors. This set is not added to the train descriptors collection stored in the class object. </td></tr>
    <tr><td class="paramname">matches</td><td>Matches. If a query descriptor is masked out in mask , no match is added for this descriptor. So, matches size may be smaller than the query descriptors count. </td></tr>
    <tr><td class="paramname">mask</td><td>Mask specifying permissible matches between an input query and train matrices of descriptors.</td></tr>
  </table>
  </dd>
</dl>
<p>In the first variant of this method, the train descriptors are passed as an input argument. In the second variant of the method, train descriptors collection that was set by <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a623a2b07755cf7fb1c79554af73cdbb0" title="Adds descriptors to train a CPU(trainDescCollectionis) or GPU(utrainDescCollectionis) descriptor coll...">DescriptorMatcher::add</a> is used. Optional mask (or masks) can be passed to specify which query and training descriptors can be matched. Namely, queryDescriptors[i] can be matched with trainDescriptors[j] only if mask.at&lt;uchar&gt;(i,j) is non-zero. </p>
</div>
</div>
<a id="a695c0aceafc907c024c24a0b5cdff758"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a695c0aceafc907c024c24a0b5cdff758">◆ </a></span>match() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::DescriptorMatcher::match </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>queryDescriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &amp; </td>
          <td class="paramname"><em>matches</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>masks</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.match(</td><td class="paramname">queryDescriptors, trainDescriptors[, mask]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.match(</td><td class="paramname">queryDescriptors[, masks]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">queryDescriptors</td><td>Query set of descriptors. </td></tr>
    <tr><td class="paramname">matches</td><td>Matches. If a query descriptor is masked out in mask , no match is added for this descriptor. So, matches size may be smaller than the query descriptors count. </td></tr>
    <tr><td class="paramname">masks</td><td>Set of masks. Each masks[i] specifies permissible matches between the input query descriptors and stored train descriptors from the i-th image trainDescCollection[i]. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a56b8dcd6fc600f8f2a23212f6e4c5082"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56b8dcd6fc600f8f2a23212f6e4c5082">◆ </a></span>radiusMatch() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::DescriptorMatcher::radiusMatch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>queryDescriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>trainDescriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>matches</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>maxDistance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>mask</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>compactResult</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.radiusMatch(</td><td class="paramname">queryDescriptors, trainDescriptors, maxDistance[, mask[, compactResult]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.radiusMatch(</td><td class="paramname">queryDescriptors, maxDistance[, masks[, compactResult]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>For each query descriptor, finds the training descriptors not farther than the specified distance. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">queryDescriptors</td><td>Query set of descriptors. </td></tr>
    <tr><td class="paramname">trainDescriptors</td><td>Train set of descriptors. This set is not added to the train descriptors collection stored in the class object. </td></tr>
    <tr><td class="paramname">matches</td><td>Found matches. </td></tr>
    <tr><td class="paramname">compactResult</td><td>Parameter used when the mask (or masks) is not empty. If compactResult is false, the matches vector has the same size as queryDescriptors rows. If compactResult is true, the matches vector does not contain matches for fully masked-out query descriptors. </td></tr>
    <tr><td class="paramname">maxDistance</td><td>Threshold for the distance between matched descriptors. Distance means here metric distance (e.g. <a class="el" href="../../d3/d59/structcv_1_1Hamming.html">Hamming</a> distance), not the distance between coordinates (which is measured in Pixels)! </td></tr>
    <tr><td class="paramname">mask</td><td>Mask specifying permissible matches between an input query and train matrices of descriptors.</td></tr>
  </table>
  </dd>
</dl>
<p>For each query descriptor, the methods find such training descriptors that the distance between the query descriptor and the training descriptor is equal or smaller than maxDistance. Found matches are returned in the distance increasing order. </p>
</div>
</div>
<a id="aec313028966f30f5b011a3e976f62c09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec313028966f30f5b011a3e976f62c09">◆ </a></span>radiusMatch() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::DescriptorMatcher::radiusMatch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>queryDescriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>matches</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>maxDistance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>masks</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>compactResult</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.radiusMatch(</td><td class="paramname">queryDescriptors, trainDescriptors, maxDistance[, mask[, compactResult]]</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>matches</td><td>=</td><td>cv.DescriptorMatcher.radiusMatch(</td><td class="paramname">queryDescriptors, maxDistance[, masks[, compactResult]]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">queryDescriptors</td><td>Query set of descriptors. </td></tr>
    <tr><td class="paramname">matches</td><td>Found matches. </td></tr>
    <tr><td class="paramname">maxDistance</td><td>Threshold for the distance between matched descriptors. Distance means here metric distance (e.g. <a class="el" href="../../d3/d59/structcv_1_1Hamming.html">Hamming</a> distance), not the distance between coordinates (which is measured in Pixels)! </td></tr>
    <tr><td class="paramname">masks</td><td>Set of masks. Each masks[i] specifies permissible matches between the input query descriptors and stored train descriptors from the i-th image trainDescCollection[i]. </td></tr>
    <tr><td class="paramname">compactResult</td><td>Parameter used when the mask (or masks) is not empty. If compactResult is false, the matches vector has the same size as queryDescriptors rows. If compactResult is true, the matches vector does not contain matches for fully masked-out query descriptors. </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="afc03bcd8e385f4b3684b7a7d42810ff6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc03bcd8e385f4b3684b7a7d42810ff6">◆ </a></span>radiusMatchImpl()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::DescriptorMatcher::radiusMatchImpl </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga353a9de602fe76c709e12074a6f362ba">InputArray</a> </td>
          <td class="paramname"><em>queryDescriptors</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::vector&lt; <a class="el" href="../../d4/de0/classcv_1_1DMatch.html">DMatch</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>matches</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float </td>
          <td class="paramname"><em>maxDistance</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>masks</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#gad9287b23bba2fed753b36ef561ae7346">noArray</a>()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool </td>
          <td class="paramname"><em>compactResult</em> = <code>false</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">pure virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Implemented in <a class="el" href="../../dc/de2/classcv_1_1FlannBasedMatcher.html#a3b97dd6b601234f4771b6befd57c2b75">cv::FlannBasedMatcher</a>, and <a class="el" href="../../d3/da1/classcv_1_1BFMatcher.html#a3099757e7de29f27b4cc4a672e40b628">cv::BFMatcher</a>.</p>
</div>
</div>
<a id="aba10146926505e6b90377f24489e336c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aba10146926505e6b90377f24489e336c">◆ </a></span>read() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void cv::DescriptorMatcher::read </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.read(</td><td class="paramname">fileName</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.read(</td><td class="paramname">arg1</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="abb46ea487ffa0c0f9dd72d3de9fd42ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb46ea487ffa0c0f9dd72d3de9fd42ab">◆ </a></span>read() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::DescriptorMatcher::read </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp; </td>
          <td class="paramname"><em>fn</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.read(</td><td class="paramname">fileName</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.read(</td><td class="paramname">arg1</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Reads algorithm parameters from a file storage. </p>
<p>Reimplemented from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#aef2ad3f4145bd6e8c3664eb1c4b5e1e6">cv::Algorithm</a>.</p>
<p>Reimplemented in <a class="el" href="../../dc/de2/classcv_1_1FlannBasedMatcher.html#a54caa24612b5b6840c2df65b924a557a">cv::FlannBasedMatcher</a>.</p>
</div>
</div>
<a id="a80e9fd98de5908f5348c17696eeb1a32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80e9fd98de5908f5348c17696eeb1a32">◆ </a></span>train()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::DescriptorMatcher::train </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.train(</td><td class="paramname"></td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Trains a descriptor matcher. </p>
<p>Trains a descriptor matcher (for example, the flann index). In all methods to match, the method <a class="el" href="../../db/d39/classcv_1_1DescriptorMatcher.html#a80e9fd98de5908f5348c17696eeb1a32" title="Trains a descriptor matcher. ">train()</a> is run every time before matching. Some descriptor matchers (for example, BruteForceMatcher) have an empty implementation of this method. Other matchers really train their inner structures (for example, <a class="el" href="../../dc/de2/classcv_1_1FlannBasedMatcher.html" title="Flann-based descriptor matcher. ">FlannBasedMatcher</a> trains flann::Index ). </p>
<p>Reimplemented in <a class="el" href="../../dc/de2/classcv_1_1FlannBasedMatcher.html#a4fc9f506ff3185caa168b937c4e71080">cv::FlannBasedMatcher</a>.</p>
</div>
</div>
<a id="a9e848d967aaed6930da407f338ca17ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e848d967aaed6930da407f338ca17ba">◆ </a></span>write() <span class="overload">[1/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void cv::DescriptorMatcher::write </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>fileName</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.write(</td><td class="paramname">fileName</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.write(</td><td class="paramname">fs[, name]</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<a id="abcba89024601e88afe6e4cc2349798c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abcba89024601e88afe6e4cc2349798c3">◆ </a></span>write() <span class="overload">[2/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::DescriptorMatcher::write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp; </td>
          <td class="paramname"><em>fs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.write(</td><td class="paramname">fileName</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.write(</td><td class="paramname">fs[, name]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Stores algorithm parameters in a file storage. </p>
<p>Reimplemented from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a1f8ad7b8add515077367fb9949a174d2">cv::Algorithm</a>.</p>
<p>Reimplemented in <a class="el" href="../../dc/de2/classcv_1_1FlannBasedMatcher.html#af612c5c0956c84b96886214850d3a0bc">cv::FlannBasedMatcher</a>.</p>
</div>
</div>
<a id="ad516a0d4afa280c256123e082a1e02c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad516a0d4afa280c256123e082a1e02c1">◆ </a></span>write() <span class="overload">[3/3]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void cv::DescriptorMatcher::write </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &gt; &amp; </td>
          <td class="paramname"><em>fs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>name</em> = <code><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>()</code> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.write(</td><td class="paramname">fileName</td><td>)</td></tr><tr><td style="width: 20px;"></td><td>None</td><td>=</td><td>cv.DescriptorMatcher.write(</td><td class="paramname">fs[, name]</td><td>)</td></tr></table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a6c1d27bb1cea2a46e0a5c7d297368edd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c1d27bb1cea2a46e0a5c7d297368edd">◆ </a></span>trainDescCollection</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&gt; cv::DescriptorMatcher::trainDescCollection</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Collection of descriptors from train images. </p>
</div>
</div>
<a id="a66bd1ba0753ab3ebb792e7b4bf5af2ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66bd1ba0753ab3ebb792e7b4bf5af2ab">◆ </a></span>utrainDescCollection</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="../../d7/d45/classcv_1_1UMat.html">UMat</a>&gt; cv::DescriptorMatcher::utrainDescCollection</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/<a class="el" href="../../d5/d0d/features2d_8hpp.html">features2d.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:42 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
